#include "sysserverheartbeat.h"
#include "cgproto.pb.h"
#include "server-socket.h"

SysServerHeartbeat::SysServerHeartbeat()
{

}

void SysServerHeartbeat::f__on_read(CnsComponentPtr com, ServerClientSocketProc* client, cgproto::Message& msg)
{
    cgproto::HeartbeatRequest hbReq;

    client->msgSend(ProtoType::HEARTBEAT_REQUEST, hbReq);
}

void SysServerHeartbeat::_on_write(uv_write_t* req, int status)
{
    free(req);
}
